const qiniu = require('qiniu')
const accessKey = 'accessKey'
const secretKey = 'secretKey'
const bucket = 'huayu'
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
const options = {
    scope: bucket,
}
const putPolicy = new qiniu.rs.PutPolicy(options)
const uploadToken = putPolicy.uploadToken(mac)
console.log(uploadToken)